package instantHelper.Raceway;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;

public class MyPreference extends PreferenceActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.xml.settingslayout);

		// myPref.setOnPreferenceClickListener(new OnPreferenceClickListener() {
		// public boolean onPreferenceClick(Preference preference) {
		// Intent settingsIntent = new Intent();
		// settingsIntent.setClass(null, SettingsIH.class);
		// startActivity(settingsIntent);
		// return true;
		// }
		// });

	}

	public boolean onPreferenceClick(Preference preference) {
		return true;
	}

	public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
			String key) {
		// Let's do something a preference value changes
		if (key.equals("")) {
			// mCheckBoxPreference.setSummary(sharedPreferences.getBoolean(key,
			// false) ? "Disable this setting" : "Enable this setting");
		} else if (key.equals("")) {
			// mListPreference.setSummary("Current value is " +
			// sharedPreferences.getValue(key, ""));
		}
	}
}